import Vue from "vue";
import VueRouter from "vue-router";
import Home from "../views/Home.vue";
import Login from "../views/loginPage.vue";
import Register from "../views/registerPage.vue";
import personIndex from "../views/Persons/index.vue";
import personExit from "../views/Persons/exit.vue";
import personCollect from "../views/Persons/collect.vue";
import personAttention from "../views/Persons/attention.vue";
import particulars from "../views/Particulars.vue";
import FollowUp from "../views/FollowUp.vue";
import search from "../views/search.vue";
import ProgramManagement from "../views/ProgramManagement.vue";

Vue.use(VueRouter);

import Test from "../views/test.vue";
const routes = [
  {
    path: "/",
    name: "Home",
    component: Home
  },
  {
    //注册 登录
    path: "/login",
    component: Login
  },
  {
    path: "/register",
    component: Register
  },
  {
    //个人中心
    path: "/person",
    component: personIndex
  },
  {
    //个人编辑页
    path: "/personExit",
    component: personExit
  },
  {
    //个人收藏页
    path: "/personCollect",
    component: personCollect
  },
  {
    //个人关注页
    path: "/personAttention",
    component: personAttention
  },
  {
    // 新闻详情 of 视频详情
    path: "/particulars",
    component: particulars
  },
  {
    // 精彩跟帖页
    path: "/FollowUp",
    component: FollowUp
  },
  {
    // search 搜索页
    path: "/search",
    component: search
  },
  {
    // Program management 栏目管理页
    path: "/ProgramManagement",
    component: ProgramManagement
  },
  // 这是测试用的
  {
    path: "/test",
    component: Test
  }
];

const router = new VueRouter({
  routes
});

export default router;
